<div class="row">
	<div class="col-md-12">
		<!-- Custom Tabs -->
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
				<li>
					<a href="<?php echo base_url();?>employers/welcome" > Welcome</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>employers/profile"> View</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>employers/edit-profile">Edit</a>
				</li>
				<li  class="active">
					<a href="<?php echo base_url(); ?>employers/contact-persons">Contact Person</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>employers/modify-logo">Logo</a>
				</li>
				<li>
					<a href="<?php echo base_url(); ?>employers/video-presentation">Video Presentation</a>
				</li>
				<li class="dropdown pull-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"/></i> <?php echo $username; ?>
					<span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-picture">Change Picture</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-password">Change Password</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/profile">Profile</a>
						</li>
						<li role="presentation" class="divider"></li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/logout">Logout</a>
						</li>
					</ul>
				</li>
				
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tab_1">
					<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<h3 class="box-title"><span style="color:#3C8DBC !important;"><span class="glyphicon glyphicon-user"></span> &nbsp; Manage the list of your contact persons</span></h3>
				<a href="<?php echo base_url(); ?>employers/create-contact-person"><button type="button" class="btn btn-sm btn-primary pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>
			</div><!-- /.box-header -->
			<div class="box-body table-responsive">
				<table id="example2" class="table table-bordered table-hover">
						<thead>
							<tr>
								<th>Employer Name</th>
								<th>Contact Person</th>
								<th>Email</th>
								<th>Phone</th>
								<th>Active</th>
								<th>Action</th>
							</tr>
						</thead>
						<tbody>
							<?php
								
								foreach($employer_contact_persons as $contact_person){
									$id=$contact_person->contact_person_id;
									$employer_name=$contact_person->username;
									$contact_person_name=$contact_person->name;
									$email=$contact_person->email;
									$phone=$contact_person->phone;
									$active=($contact_person->status == '1' )? 'YES' : 'NO';
									
							?>
									<tr>
										
										<td><?php echo $employer_name; ?></td>
										<td><?php echo $contact_person_name; ?></td>
										<td><?php echo $email; ?></td>
										<td><?php echo $phone; ?></td>
										<td><?php echo $active; ?></td>
										<td align="center">
											<a href="<?php echo base_url(); ?>employers/update-contact-person/<?php echo $id; ?>" class="btn btn-sm btn-primary" title="Update"><span class="glyphicon glyphicon-edit"></span> Edit</a>
											<a href="<?php echo base_url(); ?>employers/delete-contact-person/<?php echo $id; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure want to delete ?');" title="Delete"><span class="glyphicon glyphicon-trash"></span> Delete</a>
										</td>
									</tr>
							<?php

							}
							?>
							
						</tbody>
						<tfoot>
							<tr>
								<th>Employer Name</th>
								<th>Contact Person</th>
								<th>Email</th>
								<th>Phone</th>
								<th>Active</th>
								<th>Action</th>
							</tr>
						</tfoot>
					</table>
			</div><!-- /.box-body -->
		</div><!-- /.box -->

	</div>

</div><!-- /.row -->
					
				</div><!-- /.tab-pane -->
			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->
	</div><!-- /.col -->
</div>

